<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="./admin.css" />
<title>后台管理</title>
<script type="text/javascript" language="javascript" src="../js/utility.js"></script>
</head>
<body>
<div id="Nonsenser">
  <div id="header">
    <div id="title"></div>
  </div>
  
  <div id="navigator">
    <ul class="menuUL">
	  <li class="menuLI"><a class="menuA" href="<?php echo $_SERVER['PHP_SELF']; ?>">后台首页</a></li>
	  <li class="menuLI"><a class="menuA" href="<?php echo $_SERVER['PHP_SELF']."?do=write"; ?>">写 日 志</a></li>
	  <li class="menuLI"><a class="menuA" href="<?php echo $_SERVER['PHP_SELF']."?do=articles"; ?>">日志管理</a></li>
	  <li class="menuLI"><a class="menuA" href="<?php echo $_SERVER['PHP_SELF']."?do=comments"; ?>">评论管理</a></li>
	  <li class="menuLI"><a class="menuA" href="<?php echo $_SERVER['PHP_SELF']."?do=category"; ?>">栏目管理</a>	  </li>
	  <li class="menuLI"><a class="menuA" href="javascript:void(0)">用户管理</a></li>
	  <li class="menuLI"><a class="menuA" href="<?php echo $_SERVER['PHP_SELF']."?do=links"; ?>">链接管理</a></li>
	  <li class="menuLI"><a class="menuA" href="./logout.php">退出管理</a></li>
	</ul>
  </div>
  
  <div id="main">
<?php
//sablog的代码，直接拿来用了
$adminitem = array(
     "基本设置" => 'setting',
     "发表日志" => 'write',
     "日志管理" => 'articles',
     "评论管理" => 'comments',
     "栏目管理" => 'category',
     "链接管理" => 'links',
     "用户管理" => 'user',
   "数据库管理" => 'database',
   "服务器信息" => 'info' 
);
$do = $_GET['do'];
if (!$do) {
	$do = 'default';
} else {
	if (strlen($do) > 20) {
		$do = 'default';
	}
	$do = str_replace(array('.','/','\\',"'",":","%"),'',$do);
	$do = basename($do);
	$do = in_array($do, array('write','setting','articles','comments','category','user','links','database')) ? $do : 'default';
}

if (file_exists($do.'.php')) {
	include ($do.'.php');
} else {
	include ('default.php');
}

?>
  </div>
  
  <div id="footer">
  <p>
	<center>Powered By: <strong><a href="http://www.nonsenser.com/"><font color=#0000ff>Nonsenser.</font><font color=#ffaa00>Com</font></a></strong> 2006
    <br /><script src='http://s46.cnzz.com/stat.php?id=176794&web_id=176794' language='JavaScript' charset='gb2312'></script>
    <br />
    <a href="http://www.miibeian.gov.cn" target="_blank" style="font-size:12px">鄂ICP备06011952号</a></center>
    </p>
  </div>
</div>
</body>
</html>
